<template>
  <VerifyCode ref="verifyRef" />
  <button @click="rt"></button>
</template>

<script lang="ts">
import { ref, defineComponent, watch } from "vue"
// import Vcode from "vue-puzzle-vcode";
import VerifyCode from "@c/VerifyCode.vue"

export default defineComponent({
  components: {
    VerifyCode
  },
  setup () {

    const verifyRef = ref(undefined)
   
    const rt = () => {
      console.log(verifyRef.value.imgCode)
    }
   
    return {
      verifyRef,
      rt
    }
  }
})

</script>